<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>定位-相对定位</title>
</head>

<style>
   * {
      padding: 0;
      margin: 0; 
   }

   .box {
       width: 1226px;
       height: 615px;
       background-color: skyblue;
       margin: 10px auto; 
       /* padding-top: 15px ; */
   }

   .sub {
        float: left ;
       position: relative;
       top:100px;
       left:100px;

       height: 200px;
       width: 200px;
       background-color: pink;
   }


   .bro {
       float: left;
       height: 200px;
       width: 200px;
       background-color: yellow;
   }
</style>
<body>
    <div class="box">
        <div class="sub">01</div>
        <div class="bro">02</div>
    </div>
</body>
</html>